<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>万信管理后台</title>
    <%@ include file="/commons/meta.jsp"%>
    <link href="${ctx}/resources/admin/css/base.css" rel="stylesheet">
    <link href="${ctx}/resources/admin/css/jquery-ui.css" rel="stylesheet">
    <link href="${ctx}/resources/admin/css/zTreeStyle.css" rel="stylesheet">
</head>
<body>
<%@ include file="/jsps/admin/inc/header.jsp"%>
<%@ include file="/jsps/admin/inc/menu.jsp"%>
<div id="loading" class="loading" >加载中…</div>
<div id="shade-div" class="shade-div hide"></div>

<div id="main">
    <div id="content" class="orgStr">
    <div class="hd">
        <span>组织架构管理</span>
    </div>
    <div class="orgTop">
        <div>
            部门
        </div>
        <p><span id="test">所有部门</span></p>
        <p>
        	<input id="deptid" type="hidden">
            <a href="javascript:;" class="edit">重命名</a>
            <a href="javascript:;" class="newDepartment">新增子部门</a>
            <a href="javascript:;" class="sort">子部门排序</a>
            <a href="javascript:;" class="del">删除部门</a>
            <a href="javascript:;" class="btn blue-btn fr" >导出部门数据</a>
        </p>
    </div>
    <div class="orgLeft clearfix">
       <form action="" method="" style="padding: 10px;text-align: center">
    <!--      <div id="searchName">
               <button type="submit" class="searchName"></button>
               <input type="text" value="搜索用户" class="gray">
               <span class="removeSearch"></span>
           </div> -->  
       </form>
        <div class="zTreeDemoBackground" style="padding-left: 30px;">
            <ul id="areaTree" class="ztree">
            </ul>
        </div>
    </div>
    <div class="orgRig clearfix">
       
  <iframe src="" marginheight="0" marginwidth="0" frameborder="0" scrolling="no" width="100%" height=100% id="iframepage" name="iframepage" onLoad="iFrameHeight()" ></iframe>
      
    </div>


</div>
</div>
<%@ include file="/jsps/admin/inc/footer.jsp"%>



<!--警告框-->
<div class="popbox w300" id="warning" >
    <div class="popbox-hd">
        <h2>警告</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <p class="center"></p>
    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn" id="deleteButton">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>
<!--警告框-->
<div class="popbox w300" id="warning1" >
    <div class="popbox-hd">
        <h2>警告</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <p class="center"></p>
    </div>
    <div class="popbox-ft"><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>
<!--新增部门-->
<div class="popbox w540" id="newDepartment">
    <div class="popbox-hd">
        <h2>新增部门</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
		<p><label>父部门：</label><span id="maindeptname"></span></p>
        <p><label>部门名称：</label><input type="text" class="itext" id="SaveDeptname" value=""></p>
        <p><label>排序号：</label><input type="text" class="itext" id="SaveDeptsortmanager"></p>

    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn" id="saveButton">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>
<!--子部门排序-->
<div class="popbox w540" id="sort">
    <div class="popbox-hd">
        <h2>设置排序</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
    	<p>请拖曳部门进行排序</p>
        <ul id="sortable" class="sortable">
            <li class="ui-state-default">一级部门</li>
            <li class="ui-state-default">研发中心</li>
            <li class="ui-state-default">产品战略部</li>
            <li class="ui-state-default">管理层</li>
        </ul>
    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn" id="sortButton">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>

<!--编辑部门-->
<div class="popbox w500" id="orgEdi" >
	<input id="EditDeptid" type="hidden">
    <div class="popbox-hd">
        <h2>编辑部门</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">

        <p><label>部门名称：</label><input type="text" class="itext" id="EditDeptname" value=""></p>

    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn" id="updateButton">保存</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>
<!--分配-->
<div class="popbox w500" id="distribution" >
    <div class="popbox-hd">
        <h2>分配</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">

        <p>请选择将该用户分配到哪个部门：</p>
        <div class="zTreeDemoBackground" style="padding-left: 30px;">
            <ul id="treeDemo1" class="ztree">
            </ul>
        </div>

    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn">保存</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>
<!--缺省常联系人-->
<!--<div class="popbox w300" id="contacts" >
    <div class="popbox-hd">
        <h2>缺省常联系人</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <div class="zTreeDemoBackground">
            <ul id="treeDemo1" class="ztree">
            </ul>
        </div>
    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>-->
<script src="${ctx}/resources/admin/js/lib/jquery-1.8.0.min.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery-ui.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery-ui.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery.ztree.core-3.1.min.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery.ztree.excheck-3.1.min.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery.ztree.exedit-3.1.min.js"></script>
<script src="${ctx}/resources/admin/js/common.js"></script>
<script src="${ctx}/resources/admin/js/userConfigurationData/organizationAndManagement.js"></script>
<script src="${ctx}/resources/admin/js/lib/ztree.js"></script>
<script src="${ctx}/resources/userconfig/js/userconfig.js"></script>
<script type="text/javascript">
$(function(){
	common.menuClicked('P3', 'C5');
});

function iFrameHeight() {

    var ifm= document.getElementById("iframepage");

    var subWeb = document.frames ? document.frames["iframepage"].document :

ifm.contentDocument;

        if(ifm != null && subWeb != null) {

        ifm.height = subWeb.body.scrollHeight;

        }

}
</script>
</body>
</html>